package com.huanletao.quartz.execute;

import com.huanletao.quartz.entity.JobDetails;
import com.huanletao.quartz.utils.ReflectUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>
 *
 * </p>
 *
 * @package: com.huanletao.quartz
 * @description:
 * @className: ExecuteJobQuartz
 * @author: @踏雪无痕
 * @date: Created in 2022/7/4
 * @copyright: Copyright (c) 2022/7/4 20:42
 * @version: V1.0
 */
public class ExecuteJobQuartz extends AbstractExecuteJobQuartz {

    private static Logger logger = LoggerFactory.getLogger(AbstractExecuteJobQuartz.class);

    @Override
    public void before(JobDetails jobDetails) {
        logger.info("param {}",jobDetails);
    }

    @Override
    public void doExecute(JobDetails details) throws Exception {
        ReflectUtils.invokeMethod(details);
    }

    @Override
    public void after(JobDetails jobDetails) {
        logger.info("param {}",jobDetails);
    }
}
